use crate::{
    editor::Line,
    prelude::{Location, Position},
};

#[derive(Eq, PartialEq, Clone, Copy)]
pub enum SearchDirection {
    Forward,
    Backward,
}

// 保存在搜索过程中需要保留的数据。
pub struct SearchInfo {
    pub prev_location: Location,
    pub prev_scroll_offset: Position,
    pub query: Option<Line>,
}
